package com.nbsaas.boot.manufacturing.rest.convert;

import com.nbsaas.boot.manufacturing.data.entity.Material;
import com.nbsaas.boot.manufacturing.api.domain.response.MaterialResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 物料-实体对象转化成响应对象
*/

public class MaterialResponseConvert  implements Converter<MaterialResponse,Material> {

    @Override
    public MaterialResponse convert(Material source) {
        MaterialResponse  result = new  MaterialResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

